package hibernate2;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "course_type")
@Entity
public class CourseType {
	@Override
	public String toString() {
		return "CourseType [id=" + id + ", type_name=" + type_name + ", description=" + description + "]";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getType_name() {
		return type_name;
	}

	public void setType_name(String type_name) {
		this.type_name = type_name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "type_name")
	private String type_name;
	@Column(name = "description")
	private String description;
}
